package cn.com.wangluotongxin.chat.eureka;

import cn.com.wangluotongxin.chat.eureka.fallback.ChatClientFallback;
import cn.com.wangluotongxin.chat.eureka.form.MessageInfoForm;
import cn.com.wangluotongxin.common.web.AjaxResult;
import cn.com.wangluotongxin.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "wltx-chat-api", fallback = ChatClientFallback.class, configuration = FeignConfiguration.class)
public interface ChatClient {

    /**
     * 添加用户系统消息
     */
    @PostMapping("/chatapi/inner/message/add")
    AjaxResult addSysMsg(@RequestBody MessageInfoForm form);
}
